#include <string.h>
void StringCount(char s[])
{
    int l = strlen(s);
    int alpha = 0,blank = 0,dight = 0,other = 0;
    for(int i=0;i<l;i++)
    {
        if((s[i]>='A'&&s[i]<='Z') || (s[i]>='a'&&s[i]<='z'))
            alpha++;
        else if(s[i] == ' ' || s[i] == '\n')
           blank++;
        else if(s[i]>='0'&&s[i]<='9')
            dight++;
        else
            other++;
    }
    printf("letter = %d, blank = %d, digit = %d, other = %d",alpha,blank,dight,other);
}